<?php

App::uses('AppHelper', 'View/Helper');

/**
 * Application helper
 *
 * Add your application-wide methods in the class below, your helpers
 * will inherit them.
 *
 * @package       app.View.Helper
 */
class FrontpagesHelper extends AppHelper {
	public $helpers = array('Html');	
	public function showBySlug($content, $id, $slug, $options = null) {
		$options["escape"] = false;
		return $this->Html->link($content, 
								array('controller'	=> 'Frontpages',
											'action' 			=> 'viewPost', 
											'id' 					=> $id,
											'slug'				=> $slug),$options);
	}
}
